﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AcademyPopcorn
{
    public class Shell: MovingObject
    {
        //public new const string CollisionGroupString = "shell";

        public Shell(MatrixCoords topLeft, char[,] body, int direction)
            : base(topLeft, body,new MatrixCoords(direction,0))
        {
        }

        //public override bool CanCollideWith(string otherCollisionGroupString)
        //{
        //    return otherCollisionGroupString == SpaceShip.CollisionGroupString
        //        || otherCollisionGroupString == Block.CollisionGroupString;
        //}

        public override void RespondToCollision(CollisionData collisionData)
        {
            this.IsDestroyed = true;
        }
    }
}
